package com.rdc.example.controller;

import com.rdc.example.bean.Result;
import com.rdc.example.service.impl.UserServiceImpl;

/**
 * @author Wookie
 * @description 用户controller控制层
 */
public class UserController {

    private UserServiceImpl userService = new UserServiceImpl();

    /**
     * 用户登录
     * @param userName 用户名
     * @param password 密码
     * @return 返回登录结果Result
     */
    public Result login(String userName, String password) throws Exception {
        return userService.login(userName, password);
    }
}
